package DIGUI;
import java.io.File;


public class WJSC {
    public static void main(String[] args) throws Exception{
        File f = new File("F:/ddt");
        rm(f);
        System.out.println("删除成功");
    }
    public static void rm(File f){
        if(!f.exists()){
            return;
        }
        if(f.isDirectory()){
            File[] fs = f.listFiles();
            for (File file : fs) {
                rm(file);
            }
        }
        f.delete();
    }
}
